<?php

$host = "127.0.0.1";
$user = "root";
$pass = "";
$dbname = "bbs";


$conn = new mysqli($host, $user, $pass, $dbname);
$conn->query("set names utf8");   // 设置数据库连接交换数据的编码，utf8不是utf-8

